package MineGod;

import java.io.IOException;

import org.lwjgl.opengl.GL11;
import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureLoader;
import org.newdawn.slick.util.ResourceLoader;

public class BlockDirt extends Block {
	public static Texture dirtTex;
	public BlockDirt(){
		super(BlockType.dirt);
		maxDurability = 35;
		durability = 35;
	}

	@Override
	public Entity dropItem(double x, double y) {
		return null;
	}

	@Override
	public Texture getTexture() {
		return dirtTex;
	}

	public static void loadTexture() {
		try {
			dirtTex = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("res/mcDirt.png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
